﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Reflection;
using PSE.Framework.ProviderLoader.Configuration;

namespace PSE.AuditLogging.StorageService.Configuration
{
    public class ProductConfigurationElement : ConfigurationElement
    {
        [ConfigurationProperty("productId", IsRequired = true)]
        public string ProductId
        {
            get
            {
                return (string)this["productId"];
            }
            set
            {
                this["productId"] = value;
            }
        }

        [ConfigurationProperty("instances", IsRequired = true)]
        public InstanceConfigurationElementCollection Instances
        {
            get
            {
                return this["instances"] as InstanceConfigurationElementCollection;
            }
            set
            {
                this["instances"] = value;
            }
        }
    }
}
